<script type="text/ng-template" id="projectPlanSave.html">
	<div class="pp-save-content">
		<div class="modal-header">
	        <h3 class="modal-title">创建项目</h3>
	    </div>
	    <div class="col-sm-22 modal-body">
		    <form class="form-horizontal">
		        <div class="form-group">
		            <label class="col-sm-2 control-label">项目编号：</label>
		            <div class="col-sm-10">
		                <span>{{info.ProjectPlanNo}}</span>
		            </div>
		        </div>
		        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
		        <div class="form-group">
		            <label class="col-sm-2 control-label" for="projectPlan-projectPlanName">项目<span style="color: red;">*</span>：</label>
		            <div class="col-sm-10">
		                <input id="projectPlan-projectPlanName" type="text" class="form-control form-input-title" ng-model="projectPlan.projectPlanName" placeholder="请输入标题">
		            </div>
		        </div>
		        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
		        <div class="form-group">
		            <label class="col-sm-2 control-label" for="projectPlan-projectPlanCode">项目代号<span style="color: red;">*</span>：</label>
		            <div class="col-sm-10">
		                <input id="projectPlan-projectPlanCode" type="text" class="form-control form-input-title" ng-model="projectPlan.projectPlanCode" placeholder="请输入项目代号，字符不超过15" maxlength="15" ng-blur="testCode()">
		            </div>
		        </div>
		        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
		        <div class="form-group">
		            <div class="form-group">
		               <label class="col-sm-2 control-label">开始时间</label>
		                <div class="col-sm-3">
		                	 <m-datepicker select-dt="projectPlan.projectPlanStartupTime"></m-datepicker>
		                </div>
		                 <label class="col-sm-3 control-label">结束时间</label>
		                <div class="col-sm-1">
		                	 <m-datepicker select-dt="projectPlan.projectPlanOnlineTime"></m-datepicker>
		                </div>
		            </div>
		        </div>
		        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
		        <div class="form-group">
		            <div class="form-group">
		               <label class="col-sm-2 control-label">PDM<span style="color: red;">*</span></label>
		                <div class="col-sm-3">
		                    <m-single-select-user prompt="请选择PMD"
                                      selected-user="info.pdm"
                                      role-name="pdm"
									  uidefault="true"
                                      >
                			</m-single-select-user>
		                </div>
		                 <label class="col-sm-3 control-label">项目负责人：<span style="color: red;">*</span></label>
		                <div class="col-sm-3">
		                	 <m-single-select-user prompt="请选择项目负责人"
                                                   selected-user="info.charger"
                                                   uidefault="true">
                            </m-single-select-user>
		                </div>
		            </div>
		        </div>
		        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
		        <div class="form-group">
					<div class="col-sm-2"></div>
		            <div class="col-sm-6">
		                 <m-ui-select prompt="请选择产品设计"
		                 			  itme-list="info.reqList"
                             		  selected-item="info.req"></m-ui-select>
		            </div>
		            <div class="col-sm-2">
		                <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="addReqs()" ng-disabled="info.req.selectTrue">添加</button>
		            </div>
		        </div>
		        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
		        <div class="form-group">
					<!--<div class="panel panel-default" style="padding: 5px 10px;" ng-show="info.selectReqList.datas.length == 0">暂无数据！</div>-->
		            <div class="col-sm-12">
		                <winit-table is-user-search = "false"
			                         thdata         = "info.reqThdata"
			                         page           = "info.page"
			                         data           = "info.selectReqList"
									 delete-blur    = "deleteReq(info)" 
									 table-id       = "ppReqT" 
									 table-height   = "350">
            			</winit-table>
					</div>
		        </div>
		    </form>
		</div>
		<div class="modal-footer">
		    <button type="button" class="btn btn-primary" ng-click="createClick()">创建项目</button>
		    <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="cancelClick('cancel')">取消</button>
		</div>
	</div>
</script>